﻿namespace EyeOpen.IO.Test
{
	using System.IO;
	using Microsoft.VisualStudio.TestTools.UnitTesting;

	[TestClass]
	public class IntegrationDirectorySearchTest 
		: DirectorySearchTest
	{
		private readonly DirectoryInfo directoryInfo = 
			new DirectoryInfo("temp");
		
		[TestCleanup]
		public void Cleanup()
		{
			directoryInfo.Delete(true);
		}

		protected override IDirectoryInfo GetDirectoryInfo()
		{
			var directoryInfoWrapper = new DirectoryInfoWrapper(directoryInfo);

			directoryInfo
				.AddDirectory(DirectoryKnownValues.Folder)
				.AddFile(DirectoryKnownValues.FileName);

			directoryInfo
				.AddDirectory("dir2")
				.AddFile("file2.txt");

			return directoryInfoWrapper;
		}
	}
}